#include "mbappwig.h"
#include "ui_mbappwig.h"

MbappWig::MbappWig(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MbappWig)
{
    ui->setupUi(this);

}

MbappWig::~MbappWig()
{
    delete ui;
}

void MbappWig::paintEvent(QPaintEvent *event)
{
    // 创建画家类对象
        // 参数为 QPaintDevice *表示可绘制的对象
        QPainter painter(this);

        QPixmap map(":/new/prefix1/beijing.png");
        // 绘制图片
        painter.drawPixmap(0,0,this->width(),this->height(),map);
}


